package com.chinasoft.mapper;

import com.chinasoft.bean.Student;

import java.util.List;

public interface StudentMapper {

    //根据多个id查询

    public List<Student> selectByIds(List<Integer> ids);




    //多条件查询
    public List<Student> slelectCondition(Student stu);

    /**
     * <select id="selectAll" resultType="student">
     *         select * from student
     *     </select>
     */
    public List<Student> selectAll();
    /*
    <select id="selectById" resultType="student" parameterType="int">
            select * from student where id = #{id}
        </select>
     */
    public Student selectById(int id);
    public void insert(Student student);
    public void update(Student student);
    public void  delete(int id);

}